package rabbitmqConsummer.consummers;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
public class WorkQueueController {
    @RabbitListener(queues = "queue_work")
    public void receiveMessage1(String message) {
        System.out.println("Received message1: " + message);
    }

    @RabbitListener(queues = "queue_work")
    public void receiveMessage2(String message) {
        System.out.println("Received message2: " + message);
    }
}
